package com.yxhl.zoume.core.func.pay.model;

/**
 * Created by vhawk on 12/13/16.
 */
public enum CarPaymentEntrance {
    CAR_PAYMENT_ENTRANCE_SPECIAL_CAR_SHARE(3,"快车拼车","用车费用"),
    CAR_PAYMENT_ENTRANCE_SPECIAL_CAR_CHARTER(4,"快车包车","用车费用"),
    CAR_PAYMENT_ENTRANCE_EXPRESS_CAR_TIME(12,"专车分时","分时租车费用"),
    CAR_PAYMENT_ENTRANCE_EXPRESS_CAR_WAY(11,"专车单程","单程用车费用");

    private String title;
    private String payDescription;
    private int bizType;

    CarPaymentEntrance(int bizType,String title, String payDescription) {
        this.title = title;
        this.payDescription = payDescription;
        this.bizType = bizType;
    }

    public String getTitle() {
        return title;
    }

    public String getPayDescription() {
        return payDescription;
    }

    public static CarPaymentEntrance getCarPaymentEntranceByBizType(int bizType){
        CarPaymentEntrance entrance = null;
        for (CarPaymentEntrance paymentEntrance : CarPaymentEntrance.values()){
            if (bizType == paymentEntrance.bizType){
                entrance = paymentEntrance;
            }
        }
        return entrance;
    }
}
